.class public Lcom/waiqin365/lightapp/kehu/fr;
.super Landroid/widget/BaseAdapter;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/fr;->a:Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/fr;->a:Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->b(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/fr;->a:Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->b(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4

    if-nez p2, :cond_0

    new-instance v1, Lcom/waiqin365/lightapp/kehu/fs;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/fr;->a:Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;

    invoke-direct {v1, v0}, Lcom/waiqin365/lightapp/kehu/fs;-><init>(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/fr;->a:Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->c(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v2, 0x7f030081

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f0c0318

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/fs;->a:Landroid/widget/TextView;

    const v0, 0x7f0c0319

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/kehu/fs;->a(Lcom/waiqin365/lightapp/kehu/fs;Landroid/view/View;)Landroid/view/View;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    :goto_0
    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/fs;->a:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/fr;->a:Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->b(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/fr;->a:Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->b(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v2, p1, 0x1

    if-ne v0, v2, :cond_1

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/fs;->a(Lcom/waiqin365/lightapp/kehu/fs;)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_1
    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/fs;

    move-object v1, v0

    goto :goto_0

    :cond_1
    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/fs;->a(Lcom/waiqin365/lightapp/kehu/fs;)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1
.end method
